package iterator_pattern.exercise.exercise1;

/**
 * 抽象部门类
 * @author ricejson
 */
public abstract class Department {
    protected String name;

    public Department(String name) {
        this.name = name;
    }

    /**
     * 创建迭代器
     * @return 具体迭代器
     */
    public abstract Iterator createIterator();
}
